package com.gange.feignclient;

import com.gange.entity.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//参数表示要远程调用哪个微服务
@FeignClient("API-CATEGORY")
public interface CategoryFeignClient {
    @GetMapping("/selectOne/{id}")
    public Category selectById(@PathVariable("id") int id);
}
